package com.yoso.db;

import com.yoso.db.mapper.UserMapper;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * @author shizejin
 * @date 2024/05/09 08:54
 */
@Service
public class UserService {
    @Resource
    private UserMapper userMapper;

    @Transactional
    public Object getUserById() {
        return userMapper.getAllUser();
    }
}
